package main

import "fmt"

type Shaper interface {
	Area() float32
}

type Square struct {
	side float32
}

func (s *Square) Area() float32 {
	return s.side * s.side
}

func main() {
	s := new(Square)
	s.side = 5

	var ar Shaper
	ar = s

	fmt.Printf("The Square has area: %f\n", s.Area())
	fmt.Printf("The Shaper has area: %f\n", ar.Area())

}
